package a.f.h.d;

import a.c.e;
import a.c.m;
import a.c.w;
import a.c.x;
import a.c.y;
import a.c.z;
import a.f.j.o;
import a.i.mb;

import java.util.ArrayList;

public class k
  extends j
{
  protected static final int s = -1;
  protected static final int t = 0;
  protected static final int u = 1;
  protected static final int v = 2;
  protected static final int w = 3;
  protected static final int x = 0;
  protected static final int y = 1;
  protected static final int z = 2;
  protected static final Integer A = new Integer(2);
  protected x B;
  protected a.c.k C = new a.i.p()
  {
    public int getInt(Object paramAnonymousObject)
    {
      return 1;
    }
  };
  protected boolean D;
  private a.c.n E;
  private x F;
  private a.c.n G;
  private a.c.n H;
  public static int I;
  
  public void b(a.c.n paramn)
  {
    this.G = paramn;
  }
  
  public void c(a.c.n paramn)
  {
    this.H = paramn;
  }
  
  public void a(a.c.k paramk)
  {
    this.C = paramk;
  }
  
  public void a(x paramx)
  {
    this.B = paramx;
  }
  
  public void c(boolean paramBoolean)
  {
    this.D = paramBoolean;
  }
  
  public void a()
  {
    int i = j.r;
    b(false);
    this.F = this.a.B();
    if (i == 0) {
      if (this.G == null)
      {
        a.c.n localn = this.a.C();
        a(localn);
        this.b.a(localn, this.a.w().a(), a.f.h.b.k.a);
        this.a.a(localn);
        if (i != 0) {
          return;
        }
        if (!j.q) {
          break label93;
        }
      }
    }
    a(this.G);
    label93:
    this.a.a(this.F);
  }
  
  protected int a(a.c.q paramq, a.c.n paramn, ArrayList paramArrayList1, e[] paramArrayOfe, x paramx, ArrayList paramArrayList2)
  {
    int i7 = j.r;
    boolean bool = j.q;
    this.f = this.a.C();
    this.g = this.a.C();
    this.c = this.a.C();
    this.d = this.a.C();
    this.e = this.a.C();
    this.E = this.a.C();
    a.c.n localn1 = this.a.C();
    a.f.j.p localp = this.b.h();
    this.i = paramq.C();
    this.h = paramq.C();
    e locale1 = paramq.i();
    paramx.a(locale1, "S");
    e locale2 = paramq.i();
    paramx.a(locale2, "T");
    paramArrayOfe[0] = locale1;
    paramArrayOfe[1] = locale2;
    int i = 0;
    a.c.n localn2 = this.a.C();
    a.c.d locald1;
    Object localObject5;
    Object localObject6;
    if ((i7 != 0) || (this.H != null))
    {
      localObject1 = this.a.w();
      label407:
      label419:
      label433:
      do
      {
        if (!((m)localObject1).e()) {
          break;
        }
        localObject2 = ((m)localObject1).a();
        if (bool) {
          break label437;
        }
        do
        {
          if (i7 != 0) {
            break label433;
          }
          if (this.H.getBool(localObject2))
          {
            localObject3 = (z)this.B.get(((a.c.d)localObject2).f());
            locald1 = this.b.a((a.c.d)localObject2);
            localObject5 = ((z)localObject3).h();
            do
            {
              if (!((y)localObject5).e()) {
                break label419;
              }
              localObject6 = (u)((y)localObject5).j();
              if (bool) {
                break;
              }
              if (((u)localObject6).c().a() == locald1)
              {
                if (i7 == 0) {
                  if (((u)localObject6).b() == 0)
                  {
                    localn2.a(localObject2, 1);
                    if (i7 != 0) {
                      continue;
                    }
                    if (!bool) {
                      break label407;
                    }
                    if (i7 == 0) {}
                    a.c.q.n = !a.c.q.n;
                  }
                }
                if (i7 == 0)
                {
                  if (((u)localObject6).b() == 2) {
                    localn2.a(localObject2, 2);
                  }
                }
                else
                {
                  if (i7 != 0) {
                    continue;
                  }
                  if (!bool) {
                    break label407;
                  }
                }
                localn2.a(localObject2, 0);
              }
              ((y)localObject5).f();
            } while (!bool);
          }
          ((m)localObject1).f();
        } while (i7 != 0);
      } while (!bool);
    }
    label437:
    Object localObject1 = this.a.v();
    Object localObject9;
    Object localObject10;
    label728:
    Object localObject7;
    label862:
    Object localObject8;
    label899:
    label901:
    do
    {
      do
      {
        if (!((w)localObject1).e()) {
          break;
        }
        localObject2 = ((w)localObject1).d();
        if (bool) {
          break label925;
        }
        if (this.b.h((e)localObject2))
        {
          localObject3 = null;
          locald1 = null;
          localObject5 = (z)this.B.get(localObject2);
          localObject6 = ((z)localObject5).h();
          if (((y)localObject6).e()) {}
          m localm;
          while (i7 != 0)
          {
            u localu = (u)((y)localObject6).j();
            if (bool) {
              break label728;
            }
            if (localu.b() == 0)
            {
              localm = localu.c();
              locald1 = localm.a();
              localm.i();
              localObject3 = localm.a();
            }
            ((y)localObject6).f();
            if (!bool) {
              break;
            }
          }
          if (localObject3 == null)
          {
            localObject6 = new e[2];
            int n = 0;
            localm = ((e)localObject2).n();
            while (localm.e())
            {
              localObject9 = localm.a();
              localObject6[n] = paramq.i();
              localObject10 = paramq.a(locale1, localObject6[n]);
              paramn.a(localObject10, k);
              paramArrayList1.add(new d((a.c.d)localObject10, 1));
              i++;
              localn1.a(localObject9, localObject6[n]);
              n++;
              localm.f();
              if ((i7 != 0) || (i7 != 0)) {
                break label901;
              }
              if (bool) {
                break label899;
              }
            }
          }
          localObject6 = new e[2];
          localObject7 = localObject3;
          int i2 = 0;
          if (i2 < 2)
          {
            localObject6[i2] = paramq.i();
            localn1.a(localObject7, localObject6[i2]);
            if (bool) {
              break label862;
            }
            if (localObject7 != locald1) {}
          }
          while (i7 != 0)
          {
            localObject9 = paramq.a(locale1, localObject6[i2]);
            paramn.a(localObject9, k);
            paramArrayList1.add(new d((a.c.d)localObject9, 2));
            i += 2;
            localObject7 = this.b.b().d((a.c.d)localObject7);
            i2++;
            if (!bool) {
              break;
            }
          }
          localObject8 = paramq.a(localObject6[1], localObject6[0]);
          paramArrayList1.add(new d((a.c.d)localObject8, 1));
          this.F.a(localObject2, locald1);
        }
        ((w)localObject1).f();
      } while (!bool);
    } while (i7 != 0);
    localObject1 = this.a.v();
    label925:
    Object localObject12;
    Object localObject13;
    label1354:
    label1356:
    label1359:
    label1493:
    do
    {
      if (!((w)localObject1).e()) {
        break;
      }
      localObject2 = ((w)localObject1).d();
      if (bool) {
        break label1547;
      }
      if (!this.b.h((e)localObject2))
      {
        localObject3 = paramq.i();
        paramx.a(localObject3, "V(" + localObject2 + ")");
        int k = 4 - ((e)localObject2).d();
        if ((i7 != 0) || (this.B != null)) {}
        while (i7 != 0)
        {
          localObject5 = (z)this.B.get(localObject2);
          localObject6 = ((z)localObject5).h();
          do
          {
            do
            {
              if (!((y)localObject6).e()) {
                break label1359;
              }
              localObject7 = (u)((y)localObject6).j();
              localObject8 = paramq.i();
              localObject9 = paramq.a((e)localObject8, (e)localObject3);
              paramn.a(localObject9, ((u)localObject7).a());
              paramArrayList1.add(new d((a.c.d)localObject9, ((e)localObject2).d()));
              localObject10 = paramq.a((e)localObject3, (e)localObject8);
              paramn.a(localObject10, ((u)localObject7).a());
              paramArrayList1.add(new d((a.c.d)localObject10, 3));
              int i4 = ((u)localObject7).b() - ((u)localObject7).e();
              k -= i4;
              if (bool) {
                break label1493;
              }
              if (i4 > 0)
              {
                localObject12 = paramq.a(locale1, (e)localObject8);
                paramn.a(localObject12, k);
                paramArrayList1.add(new d((a.c.d)localObject12, i4));
                i += i4;
                if ((i7 == 0) && (!bool)) {}
              }
              else if (i4 < 0)
              {
                localObject12 = paramq.a((e)localObject8, locale2);
                paramn.a(localObject12, k);
                paramArrayList1.add(new d((a.c.d)localObject12, -i4));
              }
              localObject12 = ((u)localObject7).c();
              ((m)localObject12).f();
              do
              {
                if (!((m)localObject12).e()) {
                  break;
                }
                localObject13 = ((m)localObject12).a();
                localn1.a(localObject13, localObject8);
                ((m)localObject12).f();
                if (i7 != 0) {
                  break label1356;
                }
                if (bool) {
                  break label1354;
                }
              } while (!bool);
            } while (i7 != 0);
            ((y)localObject6).f();
          } while (!bool);
        }
        localObject5 = ((e)localObject2).n();
        do
        {
          do
          {
            if (!((m)localObject5).e()) {
              break label1437;
            }
            localObject6 = ((m)localObject5).a();
            localObject7 = (e)localn1.get(localObject6);
            if (bool) {
              break;
            }
            if (localObject7 == null) {
              localn1.a(localObject6, localObject3);
            }
            ((m)localObject5).f();
          } while (!bool);
        } while (i7 != 0);
        if (k > 0)
        {
          localObject5 = paramq.a(locale1, (e)localObject3);
          paramn.a(localObject5, k);
          paramArrayList1.add(new d((a.c.d)localObject5, k));
          i += k;
        }
        if (k < 0)
        {
          localObject5 = paramq.a((e)localObject3, locale2);
          paramn.a(localObject5, k);
          paramArrayList1.add(new d((a.c.d)localObject5, -k));
        }
      }
      ((w)localObject1).f();
    } while (!bool);
    label1437:
    int j = 0;
    label1547:
    Object localObject2 = this.b.c();
    label1732:
    do
    {
      do
      {
        if (!((o)localObject2).e()) {
          break;
        }
        localObject3 = ((o)localObject2).a();
        localObject4 = paramq.i();
        paramx.a(localObject4, "F(" + j++ + ")");
        if ((i7 == 0) && (bool)) {
          break label1916;
        }
        if (i7 == 0)
        {
          if (((a.f.j.n)localObject3).a().k() < 4)
          {
            if (i7 != 0) {
              break label1732;
            }
            if (this.b.d() != localObject3)
            {
              localObject5 = paramq.a(locale1, (e)localObject4);
              paramn.a(localObject5, k);
              paramArrayList1.add(new d((a.c.d)localObject5, 4 - ((a.f.j.n)localObject3).a().k()));
              i += 4 - ((a.f.j.n)localObject3).a().k();
            }
          }
          if (i7 != 0) {}
        }
        else if (((a.f.j.n)localObject3).a().k() > 4)
        {
          if (i7 != 0) {
            break label1822;
          }
          if (this.b.d() != localObject3)
          {
            localObject5 = paramq.a((e)localObject4, locale2);
            paramn.a(localObject5, k);
            paramArrayList1.add(new d((a.c.d)localObject5, ((a.f.j.n)localObject3).a().k() - 4));
          }
        }
        if (this.b.d() == localObject3)
        {
          localObject5 = paramq.a((e)localObject4, locale2);
          paramn.a(localObject5, k);
          paramArrayList1.add(new d((a.c.d)localObject5, ((a.f.j.n)localObject3).a().k() + 4));
        }
        localp.a((a.f.j.n)localObject3, localObject4);
        ((o)localObject2).f();
      } while (!bool);
    } while (i7 != 0);
    label1822:
    localObject2 = this.b.c();
    label1916:
    Object localObject11;
    label2185:
    do
    {
      if (!((o)localObject2).e()) {
        break;
      }
      localObject3 = ((o)localObject2).a();
      localObject4 = (e)localp.get(localObject3);
      localObject5 = ((a.f.j.n)localObject3).a();
      do
      {
        do
        {
          if (!((m)localObject5).e()) {
            break label2185;
          }
          localObject6 = ((m)localObject5).a();
          localObject7 = this.b.b(this.b.a((a.c.d)localObject6));
          localObject8 = (e)localp.get(localObject7);
          localObject9 = paramq.a((e)localObject4, (e)localObject8);
          paramn.a(localObject9, new Integer(this.C.getInt(localObject6)));
          this.c.a(localObject6, localObject9);
          paramArrayList1.add(new d((a.c.d)localObject9, 2147483647));
          localObject10 = (e)localn1.get(localObject6);
          localObject11 = paramq.a((e)localObject10, (e)localObject4);
          paramn.a(localObject11, k);
          if (bool) {
            break;
          }
          if (this.b.b(((a.c.d)localObject6).e()))
          {
            paramArrayList1.add(new d((a.c.d)localObject11, 0));
            if (i7 != 0) {
              continue;
            }
            if (!bool) {}
          }
          else
          {
            paramArrayList1.add(new d((a.c.d)localObject11, 3));
          }
          this.f.a(localObject6, localObject11);
          ((m)localObject5).f();
        } while (!bool);
        ((o)localObject2).f();
      } while (i7 != 0);
    } while (!bool);
    localObject2 = this.a.C();
    Object localObject3 = new ArrayList();
    Object localObject4 = this.a.v();
    label2511:
    do
    {
      do
      {
        if (!((w)localObject4).e()) {
          break;
        }
        localObject5 = ((w)localObject4).d();
        if (bool) {
          break label3437;
        }
        if ((!a((e)localObject5)) && (((i7 == 0) && ((this.n) && (i7 != 0))) || (((e)localObject5).d() > 4)))
        {
          localObject6 = ((e)localObject5).n();
          if (((m)localObject6).e()) {}
          do
          {
            localObject7 = ((m)localObject6).a();
            localObject8 = paramq.i();
            localObject9 = (e)localn1.get(localObject7);
            paramx.a(localObject8, "H(" + ((e)localObject5).f() + "," + paramx.get(localp.get(this.b.b((a.c.d)localObject7))) + ")");
            ((a.c.n)localObject2).a(localObject7, localObject8);
            localObject10 = paramq.a((e)localObject8, (e)localObject9);
            paramn.a(localObject10, k);
            paramArrayList1.add(new d((a.c.d)localObject10, 1));
            this.g.a(localObject7, localObject10);
            ((m)localObject6).f();
            if ((i7 == 0) && (bool)) {
              break label2511;
            }
            if (!bool) {
              break;
            }
            ((m)localObject6).h();
          } while (i7 != 0);
          localObject7 = ((m)localObject6).a();
          localObject8 = null;
          localObject9 = null;
          localObject10 = null;
          localObject11 = null;
          localObject12 = null;
          localObject13 = new ArrayList();
          int i5 = 0;
          do
          {
            if (i5 >= ((e)localObject5).e()) {
              break;
            }
            ((m)localObject6).b();
            localObject8 = localObject7;
            localObject7 = ((m)localObject6).a();
            a.f.j.n localn3 = this.b.b((a.c.d)localObject7);
            a.f.j.n localn4 = this.b.b((a.c.d)localObject8);
            e locale3 = paramq.i();
            e locale4 = paramq.i();
            ((ArrayList)localObject3).add(locale3);
            ((ArrayList)localObject3).add(locale4);
            paramx.a(locale3, "NC-L (" + ((a.c.d)localObject8).f() + "," + localObject5 + ")");
            paramx.a(locale4, "NC-R (" + ((a.c.d)localObject8).f() + "," + localObject5 + ")");
            int i6 = this.C.getInt(localObject8);
            a.c.d locald2 = paramq.a((e)localp.get(localn3), locale3);
            paramn.a(locald2, i6);
            paramArrayList1.add(new d(locald2, 1));
            this.e.a(localObject8, locald2);
            a.c.d locald3 = paramq.a((e)localp.get(localn4), locale4);
            paramn.a(locald3, i6);
            paramArrayList1.add(new d(locald3, 1));
            this.d.a(localObject8, locald3);
            a.c.d locald4 = paramq.a(locale3, (e)((a.c.n)localObject2).get(localObject8));
            paramn.a(locald4, k);
            a.c.d locald5 = paramq.a(locale4, (e)((a.c.n)localObject2).get(localObject7));
            paramn.a(locald4, k);
            if (bool) {
              break label3477;
            }
            if (localObject9 != null)
            {
              this.h.a(locald4, localObject9);
              this.i.a(localObject9, locald4);
            }
            if (i7 == 0)
            {
              if (localObject10 != null)
              {
                this.i.a(locald5, localObject10);
                this.h.a(localObject10, locald5);
              }
              localObject10 = locald5;
              localObject9 = locald4;
            }
            if (i7 == 0) {
              if (localObject12 == null) {
                localObject12 = localObject10;
              }
            }
            if ((i7 != 0) || (localObject11 == null)) {
              localObject11 = localObject9;
            }
            d locald = new d(1);
            locald.a(locald5);
            locald.a(locald4);
            paramArrayList1.add(locald);
            ((ArrayList)localObject13).add(locald);
            if (i7 == 0)
            {
              if (this.H != null)
              {
                if (i7 != 0) {
                  continue;
                }
                if (this.H.getBool(localObject8))
                {
                  if (i7 != 0) {
                    continue;
                  }
                  if (this.b.h(((a.c.d)localObject8).f()))
                  {
                    e locale5 = null;
                    if (i7 == 0)
                    {
                      if (localn2.getInt(localObject8) == 2)
                      {
                        locale5 = locale3;
                        break label3207;
                      }
                      if (i7 != 0) {}
                    }
                    else if (localn2.getInt(localObject8) == 1)
                    {
                      locale5 = locale4;
                      break label3207;
                    }
                    if (i7 == 0)
                    {
                      if (localn2.getInt(localObject8) == 0) {
                        locale5 = null;
                      }
                    }
                    else {
                      if (!bool) {
                        break label3207;
                      }
                    }
                    throw new RuntimeException("Cannot assign kandinsky bend !!!!! " + localObject8);
                    if ((locale5 != null) && ((i7 != 0) || (localObject8 != null)) && ((i7 != 0) || (this.F.get(((a.c.d)localObject8).f()) != null)))
                    {
                      e locale6 = (e)localn1.get(this.b.b().d((a.c.d)this.F.get(((a.c.d)localObject8).f())));
                      a.c.d locald6 = paramq.a(locale6, locale5);
                      paramn.a(locald6, i6);
                      paramArrayList1.add(new d(locald6, 1));
                      this.E.a(localObject8, locald6);
                    }
                  }
                }
              }
              i5++;
            }
          } while (!bool);
          paramArrayList2.add(localObject13);
          this.h.a(localObject11, localObject9);
          this.i.a(localObject9, localObject11);
          this.i.a(localObject12, localObject10);
          if (i7 != 0) {
            break label3477;
          }
          this.h.a(localObject10, localObject12);
        }
        ((w)localObject4).f();
      } while (!bool);
    } while (i7 != 0);
    label3207:
    localObject4 = this.a.v();
    label3437:
    do
    {
      do
      {
        if (!((w)localObject4).e()) {
          break;
        }
        localObject5 = ((w)localObject4).d();
        if (bool) {
          break label3700;
        }
        if (this.b.h((e)localObject5))
        {
          localObject6 = (z)this.B.get(localObject5);
          int i1 = 1073741823;
          localObject8 = ((z)localObject6).h();
          do
          {
            do
            {
              if (!((y)localObject8).e()) {
                break label3600;
              }
              localObject9 = (u)((y)localObject8).j();
              int i3 = ((u)localObject9).a().intValue();
              localObject11 = ((u)localObject9).c();
              ((m)localObject11).f();
              localObject12 = (a.c.d)this.f.get(((m)localObject11).a());
              paramn.a(localObject12, i3);
              if (bool) {
                break;
              }
              if (((u)localObject9).b() == 2) {
                i1 = i3;
              }
              ((y)localObject8).f();
            } while (!bool);
          } while (i7 != 0);
          localObject8 = ((e)localObject5).n();
          do
          {
            if (!((m)localObject8).e()) {
              break label3682;
            }
            localObject9 = (a.c.d)this.E.get(this.b.a(((m)localObject8).a()));
            if (bool) {
              break;
            }
            if (localObject9 != null) {
              paramn.a(localObject9, i1);
            }
            ((m)localObject8).f();
          } while (!bool);
        }
        ((w)localObject4).f();
      } while (i7 != 0);
    } while (!bool);
    label3477:
    label3682:
    label3700:
    int m = 0;
    label3600:
    if (m < ((ArrayList)localObject3).size()) {}
    label3842:
    do
    {
      localObject5 = (e)((ArrayList)localObject3).get(m);
      if ((i7 == 0) && (bool)) {
        break label3879;
      }
      if ((i7 != 0) || ((((e)localObject5).d() <= 1) && ((i7 != 0) || (((e)localObject5).e() <= 1))))
      {
        if (i7 != 0) {
          break label3842;
        }
        if (paramn.getInt(((e)localObject5).i()) > 0)
        {
          if (i7 != 0) {
            break label3842;
          }
          if (paramn.getInt(((e)localObject5).h()) == 0)
          {
            paramn.a(((e)localObject5).h(), paramn.getInt(((e)localObject5).i()));
            paramn.a(((e)localObject5).i(), 0);
          }
        }
      }
      m++;
      if (!bool) {
        break;
      }
      this.a.a((a.c.n)localObject2);
      this.a.a(localn1);
    } while (i7 != 0);
    this.a.a(localn2);
    label3879:
    if (i7 != 0) {
      a.c.q.o = !a.c.q.o;
    }
    return i;
  }
  
  protected double a(a.c.q paramq, int paramInt, a.c.n paramn1, e[] paramArrayOfe, ArrayList paramArrayList1, ArrayList paramArrayList2, a.c.n paramn2, x paramx)
  {
    int i4 = j.r;
    boolean bool = j.q;
    mb localmb = new mb();
    a.c.n localn = paramq.C();
    double d = -1.0D;
    d = this.o.a(paramq, paramArrayOfe[0], paramArrayOfe[1], paramn1, localn, paramInt, paramArrayList1, paramArrayList2, this.h, this.i);
    localmb.g();
    Object localObject1 = this.a.w();
    Object localObject2;
    Object localObject3;
    Object localObject4;
    Object localObject5;
    Object localObject6;
    int i;
    do
    {
      if (!((m)localObject1).e()) {
        break;
      }
      localObject2 = ((m)localObject1).a();
      localObject3 = this.b.a(((m)localObject1).a());
      localObject4 = new StringBuffer();
      localObject5 = this.e.get(localObject2);
      if ((i4 == 0) && (bool)) {
        break label483;
      }
      localObject6 = this.d.get(localObject2);
      i = localObject5 == null ? 0 : localn.getInt(localObject5);
      int j = localObject6 == null ? 0 : localn.getInt(localObject6);
      a((StringBuffer)localObject4, j, '<');
      a((StringBuffer)localObject4, i, '>');
      int k = localn.getInt(this.c.get(localObject2));
      int m = localn.getInt(this.c.get(localObject3));
      a((StringBuffer)localObject4, m, '>');
      a((StringBuffer)localObject4, k, '<');
      localObject5 = this.e.get(localObject3);
      if (i4 == 0) {
        localObject6 = this.d.get(localObject3);
      }
      int n = localObject5 == null ? 0 : localn.getInt(localObject5);
      int i1 = localObject6 == null ? 0 : localn.getInt(localObject6);
      a((StringBuffer)localObject4, n, '<');
      a((StringBuffer)localObject4, i1, '>');
      this.j += ((StringBuffer)localObject4).length();
      paramn2.a(localObject2, ((StringBuffer)localObject4).toString());
      int i2 = localn.getInt(this.f.get(localObject2));
      int i3 = 0;
      if (i4 == 0)
      {
        if (!a(((a.c.d)localObject2).e())) {
          i3 = localn.getInt(this.g.get(localObject2));
        }
        this.b.a((a.c.d)localObject2, i2 - i3 + 1);
        ((m)localObject1).f();
      }
    } while (!bool);
    label483:
    localObject1 = this.a.v();
    label874:
    do
    {
      do
      {
        if (!((w)localObject1).e()) {
          break;
        }
        localObject2 = ((w)localObject1).d();
        if (i4 != 0) {
          break label978;
        }
        if (bool) {
          break label962;
        }
        if (this.b.h((e)localObject2))
        {
          localObject3 = ((e)localObject2).n();
          do
          {
            if (!((m)localObject3).e()) {
              break label874;
            }
            localObject4 = this.b.a(((m)localObject3).a());
            if (bool) {
              break;
            }
            if (this.H.getBool(localObject4))
            {
              localObject5 = (a.c.d)this.F.get(localObject2);
              localObject6 = (a.c.d)this.E.get(localObject4);
              if (i4 != 0) {
                continue;
              }
              if (localObject6 != null)
              {
                i = localn.getInt(localObject6);
                if (i4 != 0) {
                  continue;
                }
                if (i > 0)
                {
                  this.b.a((a.c.d)localObject5, this.b.e((a.c.d)localObject5) + i);
                  a.c.d locald1 = this.b.a((a.c.d)localObject4);
                  String str1 = (String)paramn2.get(localObject4);
                  String str2 = (String)paramn2.get(locald1);
                  m localm = ((e)localObject2).b(locald1);
                  localm.b();
                  a.c.d locald2 = localm.a();
                  a.c.d locald3 = this.b.a(localm.a());
                  String str3 = (String)paramn2.get(locald2);
                  String str4 = (String)paramn2.get(locald3);
                  paramn2.a(locald2, str1 + str3);
                  paramn2.a(locald3, str4 + str2);
                  paramn2.a(localObject4, "");
                  paramn2.a(locald1, "");
                }
              }
            }
            ((m)localObject3).f();
          } while (!bool);
        }
        ((w)localObject1).f();
      } while (i4 != 0);
    } while (!bool);
    this.j /= 2;
    this.a.a(this.f);
    this.a.a(this.g);
    this.a.a(this.c);
    this.a.a(this.d);
    this.a.a(this.e);
    if (i4 == 0)
    {
      label962:
      this.a.a(this.E);
      paramq.a(localn);
    }
    label978:
    return d;
  }
  
  private boolean a(e parame)
  {
    int i = j.r;
    if (i == 0) {
      if (!this.b.b(parame)) {
        if (i != 0) {
          break label35;
        }
      }
    }
    label35:
    return this.b.h(parame);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.h.d.k

 * JD-Core Version:    0.7.0.1

 */